Anders Carlsson [Sat, 27 Oct 2001 01:27:34 +0000 (01:27 +0000)]
Clarify that a maximum length of 0 means infinity. This fixes #58771.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkentry.sgml: Clarify that a maximum length
of 0 means infinity. This fixes #58771.
Anders Carlsson [Sat, 27 Oct 2001 01:23:22 +0000 (01:23 +0000)]
Fix typo in docs. This fixes #62942.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
This fixes #62942.
Anders Carlsson [Sat, 27 Oct 2001 01:21:14 +0000 (01:21 +0000)]
Finish a sentence. This fixes #56702.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkhandlebox.sgml: Finish a sentence.
This fixes #56702.
Anders Carlsson [Sat, 27 Oct 2001 01:17:38 +0000 (01:17 +0000)]
Clarify that we're returning a spin button in the _new function. This
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
Clarify that we're returning a spin button in the _new function.
This fixes #54097.
Anders Carlsson [Sat, 27 Oct 2001 01:16:09 +0000 (01:16 +0000)]
Clarify that we're returning a spin button in the _new function. This
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtkspinbutton.sgml: Clarify that we're
returning a spin button in the _new function.
This fixes #54097.
Anders Carlsson [Sat, 27 Oct 2001 01:03:15 +0000 (01:03 +0000)]
Change docs for gtk_toolbar_append_item to say that it appends an item to
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtktoolbar.sgml: Change docs for
gtk_toolbar_append_item to say that it appends an item
to the end of a toolbar. This fixes #60428.
Owen Taylor [Sat, 27 Oct 2001 01:03:10 +0000 (01:03 +0000)]
fix typos in ChangeLog
Anders Carlsson [Sat, 27 Oct 2001 01:01:09 +0000 (01:01 +0000)]
Remove gtk_tree_view_column_cell_event here too.
Owen Taylor [Sat, 27 Oct 2001 00:59:51 +0000 (00:59 +0000)]
Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
Unfortunately, people apparently erroneously connect
to ::clicked for GtkToggleButton and expect
they know what happened in the default signal handler
instead of appropriately connecting to notification
signal ::toggled. When the revolution comes, such
people will be first against the wall.
We'll just have to go back to the old less-reliable
set-it-back hacks for handling model-view toggle
buttons and entries. :-(.
Owen Taylor [Sat, 27 Oct 2001 00:54:26 +0000 (00:54 +0000)]
Oct 26 11:54:53 2001 Owen Taylor <otaylor@redhat.com>
* */Makefile.am: Update to install images.
Anders Carlsson [Sat, 27 Oct 2001 00:48:55 +0000 (00:48 +0000)]
Remove documentation for gtk_tree_view_column_cell_event since that
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/tmpl/gtktreeviewcolumn.sgml: Remove documentation for
gtk_tree_view_column_cell_event since that function has been
removed. This fixes #62084.
Hans Breuer [Sat, 27 Oct 2001 00:41:12 +0000 (00:41 +0000)]
to simplify parsing for exported functions: - made implementation
2001-10-27 Hans Breuer <hans@breuer.org>
* gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
gtk/gtktreestore.c gtk/gtkvbbox.c :
to simplify parsing for exported functions:
- made implementation signature static, when the local
prototype already was
- put the functions return value on it's own line
- added as space between the function name and the
opening bracket
* gtk/gtk.def : added the remaining exported functions
Anders Carlsson [Sat, 27 Oct 2001 00:25:17 +0000 (00:25 +0000)]
Add note about width having to be greater than 0. This fixes #55574.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
Add note about width having to be greater than 0. This fixes
#55574.
Anders Carlsson [Sat, 27 Oct 2001 00:18:23 +0000 (00:18 +0000)]
Fix docs to say previous instead of next.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
Fix docs to say previous instead of next.
(gtk_text_iter_backward_word_start): Likewise.
This fixes bug #62980.
Anders Carlsson [Sat, 27 Oct 2001 00:13:48 +0000 (00:13 +0000)]
Change FALSE to TRUE in documentation for gdk_atom_intern, to document the
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/tmpl/properties.sgml: Change FALSE to TRUE in
documentation for gdk_atom_intern, to document the
correct behavior. This fixes #58798.
Anders Carlsson [Sat, 27 Oct 2001 00:03:13 +0000 (00:03 +0000)]
Mention that the valid width is in range 0-65535 pixels. Fixes bug #56754.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
that the valid width is in range 0-65535 pixels. Fixes bug
#56754.
Anders Carlsson [Fri, 26 Oct 2001 23:47:38 +0000 (23:47 +0000)]
Remove a dot in the documentation. Fixes bug #62632.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
a dot in the documentation. Fixes bug #62632.
This has got to be the most useful bug I have ever fixed :)
Anders Carlsson [Fri, 26 Oct 2001 23:43:32 +0000 (23:43 +0000)]
Ugh, broken pipe.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkmain-x11.c: Replace int and guint with
long and gulong in some places to make the code 64-bit
clean.
(_gdk_windowing_init_check): Replace gint with gulong.
This patch was made by George Lebl and fixes bug #62113.
Anders Carlsson [Fri, 26 Oct 2001 23:43:16 +0000 (23:43 +0000)]
Replace int and guint with long and gulong in some places to make the code
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gdk/x11/gdkmain-x11.c: Replace int and guint with
long and gulong in some places to make the code 64-bit
clean.
(_gdk_windowing_init_check): Replace gint with gulong.
This patch was made by George Lebl and fixes bug #62113.
Anders Carlsson [Fri, 26 Oct 2001 23:37:21 +0000 (23:37 +0000)]
Set up destroy signals so that all windows will be destroyed when one is.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* tests/testgtk.c
(create_window_states): Set up destroy signals so that
all windows will be destroyed when one is. This fixes
bug #58133.
Anders Carlsson [Fri, 26 Oct 2001 23:06:43 +0000 (23:06 +0000)]
Don't set a fixed height on the hscale widget. This fixes "bug" #55840.
2001-10-27 Anders Carlsson <andersca@gnu.org>
* tests/testgtk.c (create_range_controls): Don't set a
fixed height on the hscale widget. This fixes "bug"
#55840.
Anders Carlsson [Fri, 26 Oct 2001 22:48:20 +0000 (22:48 +0000)]
Update GtkStyle since it's now a GObject and not a struct. This fixes
2001-10-27 Anders Carlsson <andersca@gnu.org>
* gtk/gtk-sections.txt: Update GtkStyle since it's now a
GObject and not a struct. This fixes #55807.
Thanks to Damon for helping me out with gtk-doc and finding the solution
to this bug.
Anders Carlsson [Fri, 26 Oct 2001 19:45:06 +0000 (19:45 +0000)]
Create new "indent_expander" style property.
2001-10-26 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c:
(gtk_tree_view_class_init): Create new "indent_expander"
style property.
(gtk_tree_view_get_arrow_xrange): Add a tree argument
to the function since the xrange can change depending
on where in the tree we are.
(coords_are_over_arrow): Update function call to
gtk_tree_view_get_arrow_xrange.
(gtk_tree_view_draw_arrow): Likewise.
(gtk_tree_view_real_expand_collapse_cursor_row):
Call real_{expand|collapse}_row, so that we'll have an
animation.
Kristian Rietveld [Fri, 26 Oct 2001 18:12:34 +0000 (18:12 +0000)]
fixed a small typo
Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
* tests/Makefile.am: fixed a small typo
Kristian Rietveld [Fri, 26 Oct 2001 16:31:01 +0000 (16:31 +0000)]
Anders Carlsson suggested to use G_N_ELEMENTS here
Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
* demos/gtk-demo/list_store.c (create_model): Anders
Carlsson suggested to use G_N_ELEMENTS here
Sven Neumann [Fri, 26 Oct 2001 15:44:20 +0000 (15:44 +0000)]
gtk/gtkbutton.[ch] fixed inline comments
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
* gtk/gtkdnd.c: fixed inline comments
* gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
Sven Neumann [Fri, 26 Oct 2001 15:41:46 +0000 (15:41 +0000)]
gtk/gtkbutton.[ch] fixed inline comments
2001-10-26 Sven Neumann <sven@gimp.org>
* gtk/gtkbutton.[ch]
* gtk/gtkdnd.c: fixed inline comments
* gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
Jonathan Blandford [Fri, 26 Oct 2001 14:44:27 +0000 (14:44 +0000)]
sync minor clenup
Hans Breuer [Fri, 26 Oct 2001 14:38:12 +0000 (14:38 +0000)]
updated externals
2001-10-26 Hans Breuer <hans@breuer.org>
* gdk-pixbuf/gdk_pixbuf.def :
* gdk/gdk.def :
* gtk/gtk.def : updated externals
* gdk/win32/gdkpixmap-win32.c : removed duplicate of
gdk_window_lookup implementation. It already was in
gdk/win32/gdkwindow-win32.c
* gdk/win32/gdkproperty-win32.c : made it compile again
after GdkAtom API change
* gtk/gtk/makefile.msc.in : updated
Owen Taylor [Thu, 25 Oct 2001 21:07:53 +0000 (21:07 +0000)]
Version 1.3.10, require GLib 1.3.10.
Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
* configure.in (GTK_MICRO_VERSION): Version 1.3.10,
require GLib 1.3.10.
* NEWS: updates.
Jonathan Blandford [Thu, 25 Oct 2001 20:32:40 +0000 (20:32 +0000)]
Add support for invalid nodes. (_gtk_rbnode_rotate_right): Ditto.
Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
invalid nodes.
(_gtk_rbnode_rotate_right): Ditto.
(_gtk_rbtree_node_mark_invalid): New function.
(_gtk_rbtree_node_mark_valid): New function.
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
GObject, not a GtkObject.
(gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
correct.
(gtk_tree_model_sort_row_deleted): ditto.
(gtk_tree_model_sort_{un,}ref_node): Fix.
* gtk/gtktreeview.c: Protean incremental reflow support (commented
out)
* gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
to const char *key.
* gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
Important 1 line fix to fix a lot of refcounting woes.
Matt Wilson [Thu, 25 Oct 2001 17:05:35 +0000 (17:05 +0000)]
call gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
2001-10-25 Matt Wilson <msw@redhat.com>
* gtk/gtktextview.c (gtk_text_view_destroy): call
gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
now invalidates) so that we remove our idle functions.
(gtk_text_view_destroy_layout): remove the first_validate_idle as
well.
Matt Wilson [Thu, 25 Oct 2001 15:17:57 +0000 (15:17 +0000)]
remove conflict mark
Matt Wilson [Thu, 25 Oct 2001 14:02:51 +0000 (14:02 +0000)]
the valid range for the 'indent' property is G_MININT to G_MAXINT. Don't
2001-10-25 Matt Wilson <msw@redhat.com>
* gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
the 'indent' property is G_MININT to G_MAXINT. Don't use
-G_MAXINT for the minimum of the 'rise' property, use G_MININT
instead.
Anders Carlsson [Thu, 25 Oct 2001 05:22:13 +0000 (05:22 +0000)]
This ought to make msw happy since it fixes #62887.
2001-10-24 Anders Carlsson <andersca@gnu.org>
* gtk/gtktreeview.c:
(gtk_tree_view_real_expand_row): add an animate argument
(gtk_tree_view_real_collapse_row): likewise
(gtk_tree_view_button_press), (gtk_tree_view_button_release),
(gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
(gtk_tree_view_collapse_row): update functions that call
real_{expand|collapse}_row to set the animate argument
accordingly.
Alex Larsson [Wed, 24 Oct 2001 23:41:12 +0000 (23:41 +0000)]
Update to new Pango APIs
2001-10-24 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkfont-fb.c:
Update to new Pango APIs
* gdk/linux-fb/gdkproperty-fb.c:
Update to new GdkAtom APIs
* gdk/linux-fb/gdkwindow-fb.c:
Remove warnings
Jonathan Blandford [Wed, 24 Oct 2001 22:54:59 +0000 (22:54 +0000)]
Fix docs, #62808
Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
Kristian Rietveld [Wed, 24 Oct 2001 20:54:32 +0000 (20:54 +0000)]
treat s_path as a child path
Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
s_path as a child path
Kristian Rietveld [Wed, 24 Oct 2001 18:36:50 +0000 (18:36 +0000)]
more changes in an attempt to get it right. It's not yet ready for general
Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.c: more changes in an attempt to get
it right. It's not yet ready for general consumption.
* tests/treestoretest.c: add a button and entry for the new
iter_change function
(iter_change): new function, to test
the row_changed signal implementation of the GtkTreeModelSort
* tests/testtreesort.c: cleanups, changes to test more features
of the GtkTreeModelSort at once
Havoc Pennington [Wed, 24 Oct 2001 17:51:56 +0000 (17:51 +0000)]
remove hack to strip off the bogus newline, since we killed the bogus
2001-10-24 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
remove hack to strip off the bogus newline, since we killed the
bogus newline; fixes #61779
Havoc Pennington [Wed, 24 Oct 2001 16:24:07 +0000 (16:24 +0000)]
forgot to save ChangeLog after adding a phrase
Havoc Pennington [Wed, 24 Oct 2001 16:11:41 +0000 (16:11 +0000)]
don't create layout if we didn't have one (gtk_text_view_set_buffer):
2001-10-24 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
create layout if we didn't have one
(gtk_text_view_set_buffer): invalidate so we get the idle handlers
as appropriate, avoids blanking the screen
(gtk_text_view_invalidate): new function to do invalidation,
containing old guts of invalidated_handler
Owen Taylor [Wed, 24 Oct 2001 14:30:39 +0000 (14:30 +0000)]
Improve dreadful tooltips.
Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkalignment.c (gtk_alignment_class_init): Improve
dreadful tooltips.
Owen Taylor [Wed, 24 Oct 2001 14:15:50 +0000 (14:15 +0000)]
Always set window->parent (except or the root window itself); if the
Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
set window->parent (except or the root window itself); if
the window's parent is not a GdkWindow, or is a window of
type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
* gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
windows of type GDK_WINDOW_FOREIGN.
Stanislav Visnovsky [Wed, 24 Oct 2001 12:12:10 +0000 (12:12 +0000)]
More updates.
2001-10-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: More updates.
Havoc Pennington [Wed, 24 Oct 2001 04:48:21 +0000 (04:48 +0000)]
if we move to the front of a segment, use the "slow" technique for moving
2001-10-24 Havoc Pennington <hp@pobox.com>
* gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
the front of a segment, use the "slow" technique for moving
backward, so we don't mess up the any_segment field in the iter.
Fixes #57707
* tests/testtextbuffer.c: add code to detect #57707, to avoid
regression
Havoc Pennington [Tue, 23 Oct 2001 23:35:00 +0000 (23:35 +0000)]
only sensitize Cut if selection contains some editable text, #60975
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (popup_targets_received): only sensitize Cut
if selection contains some editable text, #60975
(gtk_text_view_scroll_to_iter): remove warning about scrolling
prior to map; it should actually be OK to do so in many cases,
it would be nice to warn about scrolling when many lines have
height 0, but I don't know what to do about that. Perhaps
move part of flush_scroll into this function? comment added
to consider this.
Havoc Pennington [Tue, 23 Oct 2001 23:21:27 +0000 (23:21 +0000)]
oops, didn't quite compile.
Havoc Pennington [Tue, 23 Oct 2001 23:06:14 +0000 (23:06 +0000)]
Correctly keep the same text on the top of the screen, considering that
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): Correctly keep the same
text on the top of the screen, considering that the changed region
may have overlapped the first paragraph. Should fix msw's "text
widget scrolled to wrong place on map" bug, and probably some
other scrolling cases as well.
(gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
instead of some random value
* gtk/gtktextview.c (gtk_text_view_class_init): actually override
grab_focus, so #59708 is really fixed
Anders Carlsson [Tue, 23 Oct 2001 22:43:01 +0000 (22:43 +0000)]
Use an image menu item here (popup_targets_received): Call
2001-10-24 Anders Carlsson <andersca@gnu.org>
* gtk/gtkentry.c: (append_action_signal): Use an image menu item here
(popup_targets_received): Call append_action_signal with stock items
* gtk/gtklabel.c: (append_action_signal): Use an image menu item here
(gtk_label_do_popup): Call append_action_signal with stock items
* gtk/gtktextview.c: (append_action_signal): Use an image menu item here
(popup_targets_received): Call append_action_signal with stock items
Havoc Pennington [Tue, 23 Oct 2001 20:13:44 +0000 (20:13 +0000)]
queue a resize here; will temporarily slow down the widget a lot, until we
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (changed_handler): queue a resize here; will
temporarily slow down the widget a lot, until we figure out how to
optimize to avoid full redraw everytime we queue a resize
Havoc Pennington [Tue, 23 Oct 2001 19:31:56 +0000 (19:31 +0000)]
handle case where offset == 0 and char_len == 0, bug #61729
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
0 and char_len == 0, bug #61729
Havoc Pennington [Tue, 23 Oct 2001 19:19:10 +0000 (19:19 +0000)]
fix return value, #61714 (Vitaly Tishkov)
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
return value, #61714 (Vitaly Tishkov)
(gtk_text_iter_backward_sentence_starts): ditto
(gtk_text_iter_backward_word_starts): ditto
(gtk_text_iter_forward_word_ends): ditto
(gtk_text_iter_forward_sentence_ends): ditto
(gtk_text_iter_backward_cursor_positions): ditto
Havoc Pennington [Tue, 23 Oct 2001 17:45:33 +0000 (17:45 +0000)]
Apply fix from Dov Grobgeld, #61858
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
fix from Dov Grobgeld, #61858
Havoc Pennington [Tue, 23 Oct 2001 17:26:57 +0000 (17:26 +0000)]
credit Hidetoshi
Havoc Pennington [Tue, 23 Oct 2001 17:26:13 +0000 (17:26 +0000)]
Update IM spot location at appropriate times, #50626
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
Update IM spot location at appropriate times, #50626
Havoc Pennington [Tue, 23 Oct 2001 16:17:15 +0000 (16:17 +0000)]
remove conflict markers
Havoc Pennington [Tue, 23 Oct 2001 16:07:05 +0000 (16:07 +0000)]
scroll to cursor on grab focus, unless it's caused by button click, #59708
2001-10-23 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
on grab focus, unless it's caused by button click, #59708
Owen Taylor [Tue, 23 Oct 2001 16:02:23 +0000 (16:02 +0000)]
Remove G_DISABLE_CONST_RETURNS.
Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
* gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
G_CONST_RETURN. (Murray Cumming)
* gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
Make G_CONST_RETURN.
* gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
results of g_get_home_dir().
* gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
copy. Storing the return from gtk_entry_get_text() is evil.
* gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
gtk/gtksignal.c: Add const.
* gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
* gtk/gtktreeview.c: Namespace object data keys to be safe, even
if we are setting them on private widgets.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Duplicate entry->text before setting it as object data.
Havoc Pennington [Mon, 22 Oct 2001 23:35:03 +0000 (23:35 +0000)]
don't back up a char from the end iterator, fixes #61859 ("can't put
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
up a char from the end iterator, fixes #61859 ("can't put cursor
at the end of the buffer")
* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
to work with delimiters other than newline.
* tests/testtextbuffer.c: add some tests for get_chars_in_line,
get_bytes_in_line
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
last line, since the newline is no longer counted.
(gtk_text_iter_get_bytes_in_line): ditto
Tor Lillqvist [Mon, 22 Oct 2001 23:27:19 +0000 (23:27 +0000)]
file makefile.msc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gdk-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gtk+-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Havoc Pennington [Mon, 22 Oct 2001 22:28:27 +0000 (22:28 +0000)]
add assertion that #58290 would trigger if it reappeared, I think
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
#58290 would trigger if it reappeared, I think
Havoc Pennington [Mon, 22 Oct 2001 22:17:21 +0000 (22:17 +0000)]
add temporary code to dump btree contents on assertion failure described
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
add temporary code to dump btree contents on assertion failure
described in #62656
* gtk/gtktextbtree.c (ensure_end_iter_segment): add some
assertions that we're getting the right end iter segment
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
verify that we aren't on the end iterator after moving
forward one segment - fixes return value in an obscure case.
Also, some trivial code cleanup/rearranging.
Havoc Pennington [Mon, 22 Oct 2001 21:52:47 +0000 (21:52 +0000)]
add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.h: add a #error unless you define
GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
* gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
Havoc Pennington [Mon, 22 Oct 2001 21:28:08 +0000 (21:28 +0000)]
fix #62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
Havoc Pennington [Mon, 22 Oct 2001 21:06:55 +0000 (21:06 +0000)]
fix #62436
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
#62436
Havoc Pennington [Mon, 22 Oct 2001 21:05:28 +0000 (21:05 +0000)]
Fix #62366
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
#62366
Owen Taylor [Mon, 22 Oct 2001 21:01:47 +0000 (21:01 +0000)]
Add cursor-position, selection-bound properties. (#62148, reported by
Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c: Add cursor-position, selection-bound
properties. (#62148, reported by Padraig O'Briain)
* gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
to cursor_position. (1.3.x addition, text_position is an awful
name.) Make cursor_position read-only to avoid sticky questions
of interaction with selection_bound. (#62636, reported by
Padraig O'Briain)
Owen Taylor [Mon, 22 Oct 2001 20:47:01 +0000 (20:47 +0000)]
Fixing popup menus to have "Paste" sensitized correctly. Original patches
Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
Fixing popup menus to have "Paste" sensitized correctly. Original
patches from Damian Ivereigh, much mangled.
* gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
gtk_selection_data_targets_include_text(). (#60854)
* gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
the clipboard has text" function gtk_clipboard_wait_is_text_available.
(#60854)
* gtk/gtkentry.c: Only enable the paste item if the clipboard
contains text. (#60973)
* gtk/gtktextview.c: Only enable the paste item if the clipboard
contains text. (#60975)
Havoc Pennington [Mon, 22 Oct 2001 19:26:16 +0000 (19:26 +0000)]
rip out "height_lines" and "width_columns" properties, it doesn't make
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): rip out
"height_lines" and "width_columns" properties, it doesn't make
sense to set the size request on a text view really. #62103
Jonathan Blandford [Mon, 22 Oct 2001 19:19:27 +0000 (19:19 +0000)]
Realized g_node_depth is broken, and that it's not worth being consistent
Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
g_node_depth is broken, and that it's not worth being consistent
with it.
Havoc Pennington [Mon, 22 Oct 2001 19:13:28 +0000 (19:13 +0000)]
Clarify behavior in docs, #61777 (gtk_text_iter_forward_search)
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
docs, #61777
(gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
change the two boolean args to a flags field, so we can extend
to add case insensitive, regexp searches later. #61852
Jonathan Blandford [Mon, 22 Oct 2001 19:08:32 +0000 (19:08 +0000)]
update docs to reflect reality, #62810
Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
reflect reality, #62810
Jonathan Blandford [Mon, 22 Oct 2001 18:24:29 +0000 (18:24 +0000)]
Remove handle_box from App demo.
Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
* demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
* gtk/gtktreeview.c (size_allocate): Move to a different drawing
system. Instead of having a window the size of the tree, we have
a window the size of widget->allocation, and simply draw with the
offset.
(coords_are_over_arrow): ditto. Move to window coordinates.
(do_prelight): ditto
(do_unprelight): ditto
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
Minor fix from Kristian Rietveld to fix unsorted case.
jacob berkman [Mon, 22 Oct 2001 17:01:11 +0000 (17:01 +0000)]
don't cast a PIXTEXT cell to a PIXMAP cell (fixes crash when using PIXTEXT
2001-10-22 jacob berkman <jacob@ximian.com>
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
a PIXMAP cell (fixes crash when using PIXTEXT cells)
Owen Taylor [Mon, 22 Oct 2001 14:31:06 +0000 (14:31 +0000)]
Deprecate gtk_entry_set_editable. (#58768, Vitaly Tishkov)
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
(#58768, Vitaly Tishkov)
* gtk/gtkobject.h: Deprecate with abandon.
(#61942, Vitaly Tishkov, Matthias Clasen)
* gtk/gtksignal.h: Deprecate everything.
* gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
(#61942, Matthias Clasen)
* gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
Havoc Pennington)
* gtk/gtkitemfactory.h: Deprecate compat functions
for GtkMenuFactory code. (#62071)
* gdk/gdkdrawable.h: Deprecate gdk_draw_string,
gdk_draw_text,gdk_draw_text_wc. (#62071)
* gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
to gtk_clipboard_get().
Owen Taylor [Mon, 22 Oct 2001 14:28:37 +0000 (14:28 +0000)]
Remove note about deprecation. (We've standard on G_CONST_RETURN rather
Sat Oct 20 18:35:21 2001 Owen Taylor <otaylor@redhat.com>
* gtk/tmpl/gtkentry.sgml (Note): Remove note about
deprecation. (We've standard on G_CONST_RETURN
rather than the reverse.) #58768, Vitaly Tishkov.
Owen Taylor [Mon, 22 Oct 2001 14:14:33 +0000 (14:14 +0000)]
Don't call g_thread_init(), we don't want to link to -lgthread if we don't
Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
g_thread_init(), we don't want to link to -lgthread if we don't
have to.
Owen Taylor [Mon, 22 Oct 2001 12:59:21 +0000 (12:59 +0000)]
Add a function, gdk_threads_init() that must be explicitely called to
Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
Add a function, gdk_threads_init() that must be explicitely
called to enable the GDK thread mutex.
Jakub Steiner [Mon, 22 Oct 2001 11:59:39 +0000 (11:59 +0000)]
stroke fix
Jakub Steiner [Mon, 22 Oct 2001 11:50:18 +0000 (11:50 +0000)]
no body parts
Owen Taylor [Mon, 22 Oct 2001 04:34:42 +0000 (04:34 +0000)]
Fix problem with g_return_if_fail return value.
Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
problem with g_return_if_fail return value.
* gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
virtual atom code from the gdk-multihead branch, removing the per-display
part. Virtualizing atoms needs to be done now to prevent compat
breakage in direct Xlib accessing code in the future. (#62208)
* gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
* gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
an opaque pointer type so the compiler catches attempts
to mingle it with X atoms.
* gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
tests/testdnd.c,tests/testselection.c:
Fix up for above atom changes.
* gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
now have the ability to add custom predefines.
* gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
to gtk_clipboard_get().
* gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
for GdkAtom => pointer change.
* gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
atoms, fix for GdkAtom => pointer change.
Kristian Rietveld [Sun, 21 Oct 2001 22:28:55 +0000 (22:28 +0000)]
remove ARROW_SIZE constant, use new function spin_button_get_arrow_size()
Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
new function spin_button_get_arrow_size() instead.
* gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
arrow was hardcoded, it's now variable.
Fixes bug #50200
Manish Singh [Sun, 21 Oct 2001 01:19:44 +0000 (01:19 +0000)]
eh, typo
Manish Singh [Sun, 21 Oct 2001 01:18:42 +0000 (01:18 +0000)]
PROP_MODEL and PROP_EXPANDER_COLUMN can be NULL, so don't do a object case
Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
PROP_EXPANDER_COLUMN can be NULL, so don't do a object case check
for those
Owen Taylor [Sat, 20 Oct 2001 23:39:32 +0000 (23:39 +0000)]
at Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
* demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
in favor of g_signal_*, gtk_object_* in favor of
g_object_*.
Keld Jørn Simonsen [Sat, 20 Oct 2001 21:47:54 +0000 (21:47 +0000)]
Update based on norwegian
gtk+/po/da.po
jacob berkman [Sat, 20 Oct 2001 04:38:55 +0000 (04:38 +0000)]
get them from $(top_srcdir)/gtk/stock-icons/ rather than
2001-10-20 jacob berkman <jacob@ximian.com>
* gtk/Makefile.am (HTML_IMAGES): get them from
$(top_srcdir)/gtk/stock-icons/ rather than
../../../gtk/stock-items/
Manish Singh [Sat, 20 Oct 2001 01:39:17 +0000 (01:39 +0000)]
since GtkIMContext derives directly from GObject now, we have to use the
Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
* gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
from GObject now, we have to use the g_object_* functions, not
gtk_object_*.
Kristian Rietveld [Fri, 19 Oct 2001 20:53:08 +0000 (20:53 +0000)]
we probably have rows_reordered nailed down now (this code is not yet
Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
nailed down now (this code is not yet ready for general consumption)
Manish Singh [Fri, 19 Oct 2001 20:46:43 +0000 (20:46 +0000)]
correct docs for use_align
Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
for use_align
Owen Taylor [Fri, 19 Oct 2001 19:48:31 +0000 (19:48 +0000)]
Add gtkimcontextsimple.
Fri Oct 19 15:44:52 2001 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am gtk/gtk-sections.txt gtk/gtk-docs.sgml:
Add gtkimcontextsimple.
Owen Taylor [Fri, 19 Oct 2001 19:47:37 +0000 (19:47 +0000)]
Missed ChangeLog commit.
Owen Taylor [Fri, 19 Oct 2001 19:47:19 +0000 (19:47 +0000)]
Really remove GtkPacker.
Owen Taylor [Fri, 19 Oct 2001 19:46:49 +0000 (19:46 +0000)]
Export GtkIMContextSimple publically. (#61862)
Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
Owen Taylor [Fri, 19 Oct 2001 19:28:27 +0000 (19:28 +0000)]
Make GtkIMContext derive from GObject, not GtkObject. (#62621)
Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
GObject, not GtkObject. (#62621)
Matthias Clasen [Fri, 19 Oct 2001 17:57:26 +0000 (17:57 +0000)]
Forgotten in last commit
Matthias Clasen [Fri, 19 Oct 2001 17:51:17 +0000 (17:51 +0000)]
Switch to DocBook 4.1 (for the PNG notation).
* gtk/gtk-docs.sgml: Switch to DocBook 4.1 (for the PNG notation).
* gtk/Makefile.am, gtk/tmpl/gtkstock.sgml: Add inlinegraphics for
the stock icons.